package cn.idietrade.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @author sy
 * @createTime 2022/11/29 15:03
 * @description 订单实体类
 */
@Data
@Alias("second0rder")
@NoArgsConstructor
@AllArgsConstructor
public class SecondOrder {
    private Integer id;         //订单id主键
    private String orderNo;     //订单编号
    private Integer buyerId;     //对应买用户表id
    private Integer payType;    //支付类型：1 微信 2支付宝 3 银行卡
    private Float totalPrice;    //总价
    private Integer goodsNum;    //总购买数量
    private Integer goodsId;    //对应商品表中商品id
    private Integer orderState;    //订单状态： 1 待支付 2 支付成功 3 支付失败
    private String creationTime;    //创建时间
    private String modificationTime;    //修改时间
    private String cancelTime;      //取消时间
    private String payTime;         //支付时间
    private Integer sellerId;     //对应卖家用户id

    private List<SecondGoods> goodsList;
}
